package com.medical.data.domain;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author cj
 * @since 2024-02-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ProjectData对象", description="")
public class ProjectData implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    private String userId;

    @ApiModelProperty(value = "项目名称")
    private String name;

    @ApiModelProperty(value = "研究领域")
    private String area;

    @ApiModelProperty(value = "描述")
    private String description;

    @ApiModelProperty(value = "项目病例个数")
    private Integer patientNumber;

    @ApiModelProperty(value = "项目开始时间")
    private Date beginTime;

    @ApiModelProperty(value = "项目结束时间")
    private Date endTime;

    @ApiModelProperty(value = "发起单位")
    @TableField("initiator")
    private String initiator;

    @ApiModelProperty(value = "1为可共享的项目")
    private Boolean isShare;

    @TableLogic
    private Boolean isDelete;

    @Version
    @ApiModelProperty(value = "版本号")
    private Integer version;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;


}
